/*
 * =====================================================================================
 *
 *       Filename:  RunningState.cc
 *
 *    Description:  :wq!
 *
 *        Version:  1.0
 *        Created:  01/04/2022 03:47:27 PM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  first_name last_name (fl), fl@my-company.com
 *        Company:  my-company
 *
 * =====================================================================================
 */

#include "RunningState.h"
#include "Context.h"
#include <iostream>
#include "Log.h"
using std::cout;
using std::endl;
using std::string;

static const string TAG = "RunningState";

RunningState::RunningState(void) {
}

RunningState::~RunningState(void) {
}

void RunningState::Open() {
    //do nothing
    LogI("In");
}

void RunningState::Close() {
    LogI("In");
}

void RunningState::Run() {
    LogI("电梯上下跑...");
}

void RunningState::Stop() {
    LogI("In");
    this->LiftState::m_pContext->SetLiftState(Context::pStoppingState);
    this->LiftState::m_pContext->GetLiftState()->Stop();
}
